package com.example.decorator.pancake;

/**
 * 加鸡蛋煎饼
 */
public class PancakeAddEgg extends PancakeDecorator {

    public PancakeAddEgg(Pancake pancake) {
        super(pancake);
    }

    @Override
    protected double getPrice() {
        return super.getPrice() + 1.5D;
    }

    @Override
    protected String getName() {
        return super.getName() + "+1个鸡蛋1.5元";
    }
}
